<?php

namespace App;

use App\Model;

class Blogs extends Model
{


    /**
     * 获取文章关联用户
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function user(){
        return $this->belongsTo('App\User');
    }

}
